import axios from '~/axios'
import { joinPramas } from './manager'

// 查询列表
export function api_project_list(form) {
    let url = '/api/backend/projects/search'
    return axios.post(url, form)
}

// add
export function api_project_add(form) {
    let url = '/api/backend/projects/create'
    return axios.post(url, form)
}


// update
export function api_project_update(id, form) {
    let url = '/api/backend/projects/update'
    return axios.post(url, {projectId:id, ...form})
}

// delete
export function api_project_delete(id) {
    let url = '/api/backend/projects/delete/' + id
    return axios.post(url)
}

// detail
export function api_project_detail(projectId) {
    let url = '/api/backend/projects/getProjectInfo?projectId=' + projectId
    return axios.post(url)
}

